package com.mes.biz.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.mes.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import com.mes.common.annotation.Excel;

/**
 * 仓位调整单表头对象 biz_space_adjust_head
 * @author wy
 * @email wy
 * @date 2024-04-03
 */
@Data
public class BizSpaceAdjustHead extends BaseEntity<BizSpaceAdjustHead>
{
    private static final long serialVersionUID = 1L;

    /** 单据编号 */
    @Excel(name = "单据编号")
    @LogField
    @FieldRemark(name = "单据编号",field = "spaceNo")
    private String spaceNo;

    /** 仓库id */
    @Excel(name = "仓库id")
    @LogField
    @FieldRemark(name = "仓库id",field = "depotId")
    private String depotId;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    @LogField
    @FieldRemark(name = "单据日期",field = "operTime")
    private Date operTime;

    /** 单据日期开始 */
    private String beginOperTime;

    /** 单据日期结束 */
    private String endOperTime;

    /** 租户id */
    @Excel(name = "租户id")
    @NotBlank(message = "租户id不允许为空")
    @LogField
    @FieldRemark(name = "租户id",field = "tenantId")
    private String tenantId;

    public void setSpaceNo(String spaceNo)
    {
        this.spaceNo = spaceNo;
    }

    public String getSpaceNo()
    {
        return spaceNo;
    }

    public void setDepotId(String depotId)
    {
        this.depotId = depotId;
    }

    public String getDepotId()
    {
        return depotId;
    }

    public void setOperTime(Date operTime)
    {
        this.operTime = operTime;
    }

    public Date getOperTime()
    {
        return operTime;
    }

    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("spaceNo", getSpaceNo())
            .append("depotId", getDepotId())
            .append("operTime", getOperTime())
            .append("tenantId", getTenantId())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
